Index: src/qtsingleapplication/qtlocalpeer.cpp
===================================================================
--- src/qtsingleapplication/qtlocalpeer.cpp.orig
+++ src/qtsingleapplication/qtlocalpeer.cpp
@@ -57,6 +57,7 @@ static PProcessIdToSessionId pProcessIdT
 #endif
 #if defined(Q_OS_UNIX)
 #include <time.h>
+#include <unistd.h>
 #endif
